<?php
/**
 * Created by PhpStorm.
 * User: LoVik
 * Date: 2017/7/18
 * Time: 16:39
 */
function getMillisecond() {
    list($s1, $s2) = explode(' ', microtime());
    return sprintf('%.0f', (floatval($s1) + floatval($s2)) * 1000);
}
var_dump(microtime(true));
var_dump(getMillisecond());